/*
 * Copyright (c) 2000-2012, 2013 S. Bhatnagar (bhatnagar dot sanjay at gmail dot com)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */
/* $Id: clCleanUp.c,v 2.0 1998/11/11 07:12:46 sanjay Exp $ */

#include <string.h>
#include <stdio.h>
#include <shell.h>
#include <cllib.h>

#ifdef __cplusplus
extern "C" {
#endif
extern unsigned short cl_RegistrationMode,cl_Pass,cl_SymbLoaded;
/*----------------------------------------------------------------------*/
void clCleanUp()
{
  if (cl_SymbTab) DeleteVTab(&cl_SymbTab,&cl_TabTail);
  if (cl_CmdTab) DeleteCTab(&cl_CmdTab,&cl_CmdTail);
  if (cl_ProgName) {free(cl_ProgName); cl_ProgName = NULL;}
  if (cl_CommandLine) {free(cl_CommandLine); cl_CommandLine = NULL;}
  cl_RegistrationMode=1;
  cl_Pass = 0;
  cl_SymbLoaded= 0;
}

#ifdef __cplusplus
	   }
#endif
